
from biz_service import BizService
class LocalRegion(BizService):
    def __init__(self, year, week, local, cfg=None):
        super().__init__(year, week)
        self.__local = local
        self.cfg = cfg

    def _preprocess(self):
        pass
        return True

    def _post_process(self):
        return True

    def _run(self):
        src = self.__local.get('src') 
        if src is None or self.is_src_invalid(src):
            return False
        result = self.__local.get('result')
        if result is None or self.is_result_invalid(result):
            return False

        import local_region_week 
        local_region_week.local_region_week(src, self.year(), self.week(), result)
        return True
